package libs.yzx.zaza;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.TextView;

/**
 * Created by Administrator on 2016/7/12.
 */
public class MyTextView extends TextView {
    public MyTextView(Context context) {
        super(context);
    }

    public MyTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }


    @Override
    protected void onVisibilityChanged(View changedView, int visibility) {
        super.onVisibilityChanged(changedView, visibility);
        onVisibilityChangedListener.onChange(visibility);
    }


    public OnVisibilityChangedListener onVisibilityChangedListener;

    public interface OnVisibilityChangedListener {
        void onChange(int visibility);
    }

}
